"bringToFront" maximized window

Is there any way to "bringToFront" "Maximized" module window without "Restoring" its size?
The best would be not to ingerate in any way into window size?

For example if I run on "Maximized" module window following DXL:

bringToFront(current Module)


The window pops up into front as it should, but with "Restored" size.

/Jarek


SystemAdmin - Wed Nov 04 10:31:53 EST 2009

Re: "bringToFront" maximized window
Mathias Mamsch - Thu Nov 05 04:24:05 EST 2009

Hah! I found one:
 

void bringModuleToFront (Module m) {
      current = m  // may not be needed
      load (moduleVersion m, true)
}

 


seems to work... Regards, Mathias

 

Re: "bringToFront" maximized window
SystemAdmin - Thu Nov 05 10:25:30 EST 2009

Mathias Mamsch - Thu Nov 05 04:24:05 EST 2009

Hah! I found one:
 

void bringModuleToFront (Module m) {
      current = m  // may not be needed
      load (moduleVersion m, true)
}

 


seems to work... Regards, Mathias

 

In fact it works.
Great!

Re: "bringToFront" maximized window
llandale - Tue Mar 15 09:24:59 EDT 2011

Mathias Mamsch - Thu Nov 05 04:24:05 EST 2009

Hah! I found one:
 

void bringModuleToFront (Module m) {
      current = m  // may not be needed
      load (moduleVersion m, true)
}

 


seems to work... Regards, Mathias

 

Got redirected here from your other post today. I wonder about setting the current module. I notice that if you follow this function with "bringToFront(m)" then the module is returned to its normal size. However, if you change "true" to "false" then the "load" appears to do nothing; but then when followed by bringToFront the module is retained at its maximized size.

Thus, you could add the "load(false)" commnand after your original "read" or "edit" command, and then subsequent "bringToFront" commands will work. That's not too useful but I do find it curious.

  • Louie

Re: "bringToFront" maximized window
Mathias Mamsch - Tue Mar 15 18:39:15 EDT 2011

llandale - Tue Mar 15 09:24:59 EDT 2011
Got redirected here from your other post today. I wonder about setting the current module. I notice that if you follow this function with "bringToFront(m)" then the module is returned to its normal size. However, if you change "true" to "false" then the "load" appears to do nothing; but then when followed by bringToFront the module is retained at its maximized size.

Thus, you could add the "load(false)" commnand after your original "read" or "edit" command, and then subsequent "bringToFront" commands will work. That's not too useful but I do find it curious.

  • Louie

load (..., true) and load(..., false) make no difference for me with this code with a current Module in maximized state. In both cases they are returned to normal size. Regards, Mathias
 

Module m = current 
load (moduleVersion m, false)
bringToFront m

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS